<?php if ($this->pageCount): ?>
<ul class="pagination pull-right">
        <!-- Previous page link -->
        <?php if (isset($this->previous)): ?>
            <li>
                <a href="<?php echo $this->url($this->route, array('page'=>$this->previous)); ?>">
                    上一页
                </a>
            </li>
        <?php else: ?>
            <li class="disabled">
                <a class="disabled">上一页</a>
            </li>
        <?php endif; ?>
        <!-- Numbered page links -->
        <?php foreach ($this->pagesInRange as $page): ?>
            <?php if ($page != $this->current): ?>
                <li>
                    <a href="<?php echo $this->url($this->route, array('page'=>$page))?>">
                        <?php echo $page; ?>
                    </a>
                </li>
            <?php else: ?>
                <li class="disabled">
                    <a href=""><?php echo $page; ?></a>
                </li>
            <?php endif; ?>
        <?php endforeach; ?>

        <!-- Next page link -->

        <?php if (isset($this->next)): ?>
            <li>
                <a href="<?php echo $this->url($this->route, array('page'=>$this->next)); ?>">
                    下一页
                </a>
            </li>
        <?php else: ?>
            <li class="disabled">
                <a>下一页</a>
            </li>
        <?php endif; ?>
    </ul>
<?php endif; ?>